package mythread.demo001;

public class MyThread8_2 extends Thread {
    public MyThread8_2(){
        System.out.println("构造name-"+Thread.currentThread().getName());
        System.out.println("构造active-"+Thread.currentThread().isAlive());
        System.out.println("构造name-"+this.getName());
        System.out.println("构造active-"+this.isAlive());
    }

    @Override
    public void run() {
        System.out.println("runname-"+Thread.currentThread().getName());
        System.out.println("runactive-"+Thread.currentThread().isAlive());
        System.out.println("runname-"+this.getName());
        System.out.println("runactive-"+this.isAlive());
    }
}
